package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.itemtax.PMItemTaxTransferer;
import com.fis.hlo.pm.itemtax.PMItemTaxTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class ItemTaxTransfererClient {
	private static final QName SERVICE_NAME =new QName("http://itemtax.pm.hlo.fis.com/", "PMItemTaxTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_ITEM_TAX_PORT_KEY);

	public static PMItemTaxTransferer getService() throws Exception{
		URL url = new URL(WSDL_URL);
		PMItemTaxTransfererService ss = new PMItemTaxTransfererService(url, SERVICE_NAME);
		PMItemTaxTransferer port = ss.getPMItemTaxTransfererPort();
		return port;
	}
}	
